//package com.bwie.controller;
//
//import com.bwie.config.DirectConfig;
//import com.bwie.mapper.TbUserMapper;
//import com.bwie.utils.R;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@Slf4j
//@RequestMapping("/rabbitmq")
//public class RabbitMqController {
//    @Autowired
//    private RabbitTemplate rabbitTemplate;
//
//    @PostMapping("/send")
//    public R send(){
//        log.info("发送消息：");
//
//        rabbitTemplate.convertAndSend(DirectConfig.DIRECT_EXCHANGE_ONE,
//                DirectConfig.DIRECT_ROUTKING_ONE,"1234");
//
//        return R.OK();
//    }
//}
